import type { PermissionsTypeEnum, RecordTypeEnum } from '@/enums/serviceFormEnum';

export type CreateServiceForm = {
  id?: number;
};

/**统计结果详情 */
export type StatisticsDetail = {
  /**题目 */
  title: string;
  /**表单id */
  serviceTicketFormId: number;
  id: number;
};

export type CreateServiceFormResult = {
  serviceTicketFormId: number
  title: string
}

/** 表单预览 */
export type ServiceFormPreview = {
  serviceTicketFormId: number
}
export type FormDatas = {
  /**模板id */
  id: number;
  /**tab下标 */
  currentIndex: number;
}

/** 填写服务表单 */
export type ServiceFormFilling = {
  role?: PermissionsTypeEnum | undefined,
  /**记录id */
  serviceTicketFormId: number
  /**模板id */
  serviceTicketRecordId?: number
}
/** 填写表单的结果页 */
export type ServiceFormFillingResult = {
  id: number
}

/** 表单记录详情 */
export type ServiceFormRecordDetail = {
  id: number
}

/** 表单记录列表 */
export type SysServiceFormRecord = {
  /**记录类型 */
  recordType: RecordTypeEnum
}

/** 表单记录-导出详情 */
export type ExportDetail = {
  /** 可下载url */
  urls: string[]
}